package com.the_ring.behavior.interpreter;

/**
 * @author: t22306139
 * @date: 2023/12/1  15:39
 */
public class TerminalExpression implements Expression{

    private String data;

    public TerminalExpression(String data) {
        this.data = data;
    }

    @Override
    public boolean interpret(String context) {
        return context.contains(data);
    }
}
